package com.endava.nio_io;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Io_BufferedReader {

	public static void main(String[] args) throws IOException {
		FileReader fileReader = new FileReader("br.dat");
		// BufferedReader bufReader;
		BufferedReader bufReader = new BufferedReader(fileReader);

		@SuppressWarnings("unused")
		int value = 0;
		while ((value = bufReader.read()) != -1) {
			System.out.println(bufReader.readLine());

		}
		bufReader.close();
		
	}
}
